﻿
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="~/Areas/Back/lib/css/layui.css" />
    <script src="~/Areas/Back/lib/layui/layui.js" type="text/javascript" charset="utf-8"></script>

</head>
<body>
    <form action="" method="get">
        <input type='text' id="keyboard" name='gid' class="input_text" value="" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字词'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字词'}" />
        <input name="show" value="title" type="hidden">
        <input name="tempid" value="1" type="hidden">
        <input name="tbname" value="news" type="hidden">
        <input type="button" value="搜索" id="btnSearch" class="input_submit">
    </form>
    <script>
        layui.use('laypage', function () {
            var $ = layui.$;
            $("#btnSearch").click(function () {
                var con = $('#keyboard').val();
                var href = '/Article/Index?con=' + con;
                href += '&page=1&limit=10';
                console.log(href)
                location.href = href;
                return false;
            });
        });
    </script>
</body>
</html>


